package com.learn.security.controller;

import com.learn.security.bo.ApiResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version 1.0
 * @author: YU.TAN
 * @date: 2023/6/28 0:07
 * @Description:
 */
@RestController
public class TestController {

    @GetMapping("/api/anon")
    public ApiResult test01() {
        return ApiResult.ok("匿名访问成功");
    }

    @GetMapping("/api/user")
    public ApiResult test02() {
        return ApiResult.ok("USER用户访问成功");
    }

    @GetMapping("/api/admin")
    public ApiResult test03() {
        return ApiResult.ok("管理员用户访问成功");
    }

}
